package SkT;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class main {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("application-skt.xml");
        A a1 = context.getBean("a1", A.class);
        a1.m();
        A a2 = context.getBean("a2", A.class);
        a2.m();
        A a3 =context.getBean("a1",A.class);

        System.out.println(a1 == a3);
        System.out.println(a1.hashCode());
        System.out.println(a2.hashCode());
        System.out.println(a3.hashCode());
    }
}
